<template>
  <div>
    <div class="title">
      热销推荐
    </div>
    <ul>
      <li class="item" v-for="item of recommendList" :key="item.id">
        <img class="item-img" :src="item.imgUrl">
        <div class="item-info">
          <p class="item-title">{{item.itemTitle}}</p>
          <p class="item-desc">{{item.itemDesc}}</p>
          <p class="item-btn">详细信息>></p>
        </div>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  name: 'HomeRecommend',
  props: {
    recommendList: Array
  }
}
</script>

<style lang="stylus" scoped>
  @import '~styles/varibles.styl'
  .title
    margin-top: .2rem
    text-indent: .2rem
    line-height: .6rem
    background: #eee
    color: $darkTextColor
  .item
    display: flex
    height: 1.82rem
    overflow: hidden
    border-bottom: solid .01rem #eee
    .item-img
      width: 2.4rem
      height: 1.6rem
      padding: .1rem
    .item-info
      flex: 1
      padding: .1rem
      .item-title
        line-height: .54rem
        font-size: .32rem
      .item-desc
        line-height: .32rem
        font-size: .25rem
        color: #aaa
    .item-btn
      margin-top: .1rem
      line-height: .32rem
      color: #777
</style>
